<table>
    <tbody>
    
        <tr class="prop">
            <td class="name">
                <label for="recordType"><g:message code="b2b.contract.recordType.label" default="Record Type" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'recordType', 'errors')}">
                <g:select name="recordType.id" from="${org.icress.fusion.admin.RecordType.list()}" optionKey="id" value="${contractInstance?.recordType?.id}"  />
            </td>
            <td class="name">
                <label for="serialNumber"><g:message code="b2b.contract.serialNumber.label" default="Contract Number" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'serialNumber', 'errors')}">
                <g:textField name="serialNumber" maxlength="18" value="${contractInstance?.serialNumber}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td class="name">
                <label for="dealer"><g:message code="b2b.contract.dealer.label" default="Dealer" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'dealer', 'errors')}">
                <g:select name="dealer.id" from="${org.icress.fusion.b2b.Dealer.list()}" optionKey="id" value="${contractInstance?.dealer?.id}"  />
            </td>
            <td class="name">
                &nbsp;
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'department', 'errors')}">
            	&nbsp;
            </td>
        </tr>
    
        <tr class="prop">
            <td class="name">
                <label for="subject"><g:message code="b2b.contract.subject.label" default="Subject" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'subject', 'errors')}">
                <g:textField name="subject" maxlength="30" value="${contractInstance?.subject}" />
            </td>
            <td class="name">
                <label for="project"><g:message code="b2b.contract.project.label" default="Project" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'project', 'errors')}">
                <g:textField name="project" value="${contractInstance?.project}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td class="name">
                <label for="applicant"><g:message code="b2b.contract.applicant.label" default="Applicant" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'applicant', 'errors')}">
                <g:textField name="applicant" value="${contractInstance?.applicant}" />
            </td>
            <td class="name">
                <label for="filingDate"><g:message code="b2b.contract.filingDate.label" default="FilingDate" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'filingDate', 'errors')}">
                <g:datePicker name="filingDate" precision="day" value="${contractInstance?.filingDate}"  />
            </td>

        </tr>

        <tr class="prop">
            <td class="name">
                <label for="industry"><g:message code="b2b.contract.industry.label" default="Industry" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'industry', 'errors')}">
                <g:select name="industry.id" from="${org.icress.fusion.b2b.Industry.list()}" optionKey="id" value="${contractInstance?.industry?.id}"  />
            </td>
            <td class="name">
                <label for="effectiveDate"><g:message code="b2b.contract.effectiveDate.label" default="Effective Date" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'effectiveDate', 'errors')}">
                <g:datePicker name="effectiveDate" precision="day" value="${contractInstance?.effectiveDate}"  />
            </td>
        </tr>
                
        <tr class="prop">
            <td class="name">
                <label for="description"><g:message code="b2b.contract.description.label" default="Desc" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractInstance, field: 'description', 'errors')}" colspan="3">
                <g:textArea name="description" value="${contractInstance?.description}" />
            </td>
        </tr>
    
    </tbody>
</table>